package cn.xiongxf.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SmsDto {
//    @Pattern(regexp ="^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\\\\d{8}$" ,message = "手机号码格式不正确")
    @Size(min = 11,max = 11,message = "手机号码格式不正确")
    private String mobile;

    @NotEmpty(message = "图片验证码不能为空")
    private String imageCode;

    @NotEmpty(message = "非法请求")
    private String imageCodeKey;
}
